/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package by.vdl.websort.server.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 *
 * @author vasilenko
 */

@Entity
@Table(name="user")
public class UserDTO implements Serializable {

    private long userId;


    private String name;


    private String password;
    private String ip;
    private String hash;


    private String email;

    private String firstName;
    private String lastName;
    private String organisation;
    private String logo;

    public UserDTO(long userId, String name, String password, String ip, String hash, String email) {
        this.userId = userId;
        this.name = name;
        this.password = password;
        this.ip = ip;
        this.hash = hash;
        this.email = email;
    }

    public UserDTO() {
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    @Column(name="id")
    @Id
    @GeneratedValue
    public long getId() {
        return userId;
    }

    public void setId(long id) {
        this.userId = id;
    }


    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getOrganisation() {
        return organisation;
    }

    public void setOrganisation(String organisation) {
        this.organisation = organisation;
    }

}
